package org.mogu.tools;

import java.util.HashMap;
import java.util.Map;

public class CityData {

	public String[] sheng = new String[35];
	public String[] age = new String[9];
	public Map<String, String[]> city = new HashMap<String, String[]>();
	public String[] sheng_search = new String[36];
	public Map<String, String[]> city_search = new HashMap<String, String[]>();

	public CityData() {
		sheng[0] = "安徽";
		sheng[1] = "北京";
		sheng[2] = "重庆";
		sheng[3] = "福建";
		sheng[4] = "甘肃";
		sheng[5] = "广东";
		sheng[6] = "广西";
		sheng[7] = "贵州";
		sheng[8] = "海南";
		sheng[9] = "河北";
		sheng[10] = "河南";
		sheng[11] = "黑龙江";
		sheng[12] = "湖北";
		sheng[13] = "湖南";
		sheng[14] = "江苏";
		sheng[15] = "江西";
		sheng[16] = "吉林";
		sheng[17] = "辽宁";
		sheng[18] = "内蒙古";
		sheng[19] = "宁夏";
		sheng[20] = "青海";
		sheng[21] = "上海";
		sheng[22] = "山东";
		sheng[23] = "山西";
		sheng[24] = "陕西";
		sheng[25] = "四川";
		sheng[26] = "天津";
		sheng[27] = "新疆";
		sheng[28] = "西藏";
		sheng[29] = "云南";
		sheng[30] = "浙江";
		sheng[31] = "香港";
		sheng[32] = "澳门";
		sheng[33] = "台湾";
		sheng[34] = "其它";
		int i = 0;
		String[] city1 = new String[17];
		city1[0] = "合肥市";
		city1[1] = "淮北市";
		city1[2] = "淮南市";
		city1[3] = "黄山市";
		city1[4] = "安庆市";
		city1[5] = "蚌埠市";
		city1[6] = "巢湖市";
		city1[7] = "池州市";
		city1[8] = "滁州市";
		city1[9] = "六安市";
		city1[10] = "马鞍山市";
		city1[11] = "宣城市";
		city1[12] = "宿州市";
		city1[13] = "铜陵市";
		city1[14] = "芜湖市";
		city1[15] = "阜阳市";
		city1[16] = "亳州市";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "北京市";
		city.put(sheng[i++], city1);
		city1 = new String[4];
		city1[0] = "重庆市";
		city1[1] = "涪陵市";
		city1[2] = "黔江市";
		city1[3] = "万县市";
		city.put(sheng[i++], city1);
		city1 = new String[9];
		city1[0] = "福州市";
		city1[1] = "龙岩市";
		city1[2] = "南平市";
		city1[3] = "宁德市";
		city1[4] = "莆田市";
		city1[5] = "泉州市";
		city1[6] = "三明市";
		city1[7] = "厦门市";
		city1[8] = "漳州市";
		city.put(sheng[i++], city1);
		city1 = new String[14];
		city1[0] = "兰州市";
		city1[1] = "甘南藏族自治州";
		city1[2] = "定西地区";
		city1[3] = "白银市";
		city1[4] = "嘉峪关市";
		city1[5] = "金昌市";
		city1[6] = "酒泉市";
		city1[7] = "临夏回族自治州";
		city1[8] = "陇南地区";
		city1[9] = "平凉市";
		city1[10] = "庆阳市";
		city1[11] = "天水市";
		city1[12] = "武威市";
		city1[13] = "张掖市";
		city.put(sheng[i++], city1);
		city1 = new String[21];
		city1[0] = "广州市";
		city1[1] = "佛山市";
		city1[2] = "惠州市";
		city1[3] = "东莞市";
		city1[4] = "江门市";
		city1[5] = "揭阳市";
		city1[6] = "潮州市";
		city1[7] = "茂名市";
		city1[8] = "梅州市";
		city1[9] = "清远市";
		city1[10] = "汕头市";
		city1[11] = "汕尾市";
		city1[12] = "深圳市";
		city1[13] = "韶关市";
		city1[14] = "阳江市";
		city1[15] = "河源市";
		city1[16] = "云浮市";
		city1[17] = "中山市";
		city1[18] = "珠海市";
		city1[19] = "湛江市";
		city1[20] = "肇庆市";
		city.put(sheng[i++], city1);
		city1 = new String[14];
		city1[0] = "南宁市";
		city1[1] = "防城港市";
		city1[2] = "北海市";
		city1[3] = "百色市";
		city1[4] = "贺州市";
		city1[5] = "桂林市";
		city1[6] = "来宾市";
		city1[7] = "柳州市";
		city1[8] = "崇左市";
		city1[9] = "钦州市";
		city1[10] = "贵港市";
		city1[11] = "梧州市";
		city1[12] = "河池市";
		city1[13] = "玉林市";
		city.put(sheng[i++], city1);
		city1 = new String[9];
		city1[0] = "贵阳市";
		city1[1] = "毕节地区";
		city1[2] = "遵义市";
		city1[3] = "安顺市";
		city1[4] = "六盘水市";
		city1[5] = "黔东南苗族侗族自治州";
		city1[6] = "黔南布依族苗族自治州";
		city1[7] = "黔西南布依族苗族自治";
		city1[8] = "铜仁地区";
		city.put(sheng[i++], city1);
		city1 = new String[3];
		city1[0] = "海口市";
		city1[1] = "三亚市";
		city1[2] = "省直辖行政单位";
		city.put(sheng[i++], city1);
		city1 = new String[11];
		city1[0] = "石家庄市";
		city1[1] = "邯郸市";
		city1[2] = "邢台市";
		city1[3] = "保定市";
		city1[4] = "张家口市";
		city1[5] = "沧州市";
		city1[6] = "承德市";
		city1[7] = "廊坊市";
		city1[8] = "秦皇岛市";
		city1[9] = "唐山市";
		city1[10] = "衡水市";
		city.put(sheng[i++], city1);
		city1 = new String[18];
		city1[0] = "郑州市";
		city1[1] = "开封市";
		city1[2] = "驻马店市";
		city1[3] = "安阳市";
		city1[4] = "焦作市";
		city1[5] = "洛阳市";
		city1[6] = "濮阳市";
		city1[7] = "漯河市";
		city1[8] = "南阳市";
		city1[9] = "平顶山市";
		city1[10] = "新乡市";
		city1[11] = "信阳市";
		city1[12] = "许昌市";
		city1[13] = "商丘市";
		city1[14] = "三门峡市";
		city1[15] = "鹤壁市";
		city1[16] = "周口市";
		city1[17] = "济源市";

		city.put(sheng[i++], city1);
		city1 = new String[13];
		city1[0] = "哈尔滨市";
		city1[1] = "大庆市";
		city1[2] = "大兴安岭地区";
		city1[3] = "鸡西市";
		city1[4] = "佳木斯市";
		city1[5] = "牡丹江市";
		city1[6] = "齐齐哈尔市";
		city1[7] = "七台河市";
		city1[8] = "双鸭山市";
		city1[9] = "绥化市";
		city1[10] = "伊春市";
		city1[11] = "鹤岗市";
		city1[12] = "黑河市";

		city.put(sheng[i++], city1);
		city1 = new String[14];
		city1[0] = "武汉市";
		city1[1] = "黄冈市";
		city1[2] = "黄石市";
		city1[3] = "恩施土家族苗族自治州";
		city1[4] = "鄂州市";
		city1[5] = "荆门市";
		city1[6] = "荆州市";
		city1[7] = "孝感市";
		city1[8] = "省直辖县级行政单位";
		city1[9] = "十堰市";
		city1[10] = "襄樊市";
		city1[11] = "咸宁市";
		city1[12] = "宜昌市";
		city1[13] = "随州市";
		city.put(sheng[i++], city1);
		city1 = new String[14];
		city1[0] = "长沙市";
		city1[1] = "怀化市";
		city1[2] = "郴州市";
		city1[3] = "常德市";
		city1[4] = "娄底市";
		city1[5] = "邵阳市";
		city1[6] = "湘潭市";
		city1[7] = "湘西土家族苗族自治州";
		city1[8] = "衡阳市";
		city1[9] = "永州市";
		city1[10] = "益阳市";
		city1[11] = "岳阳市";
		city1[12] = "株洲市";
		city1[13] = "张家界市";
		city.put(sheng[i++], city1);
		city1 = new String[13];
		city1[0] = "南京市";
		city1[1] = "淮安市";
		city1[2] = "常州市";
		city1[3] = "连云港市";
		city1[4] = "南通市";
		city1[5] = "徐州市";
		city1[6] = "苏州市";
		city1[7] = "无锡市";
		city1[8] = "盐城市";
		city1[9] = "扬州市";
		city1[10] = "镇江市";
		city1[11] = "泰州市";
		city1[12] = "宿迁市";
		city.put(sheng[i++], city1);
		city1 = new String[11];
		city1[0] = "南昌市";
		city1[1] = "抚州市";
		city1[2] = "赣州市";
		city1[3] = "吉安市";
		city1[4] = "景德镇市";
		city1[5] = "九江市";
		city1[6] = "萍乡市";
		city1[7] = "新余市";
		city1[8] = "上饶市";
		city1[9] = "鹰潭市";
		city1[10] = "宜春市";
		city.put(sheng[i++], city1);
		city1 = new String[9];
		city1[0] = "长春市";
		city1[1] = "白城市";
		city1[2] = "白山市";
		city1[3] = "吉林市";
		city1[4] = "辽源市";
		city1[5] = "四平市";
		city1[6] = "松原市";
		city1[7] = "通化市";
		city1[8] = "延边朝鲜族自治州";
		city.put(sheng[i++], city1);
		city1 = new String[14];
		city1[0] = "沈阳市";
		city1[1] = "大连市";
		city1[2] = "阜新市";
		city1[3] = "抚顺市";
		city1[4] = "本溪市";
		city1[5] = "鞍山市";
		city1[6] = "丹东市";
		city1[7] = "锦州市";
		city1[8] = "朝阳市";
		city1[9] = "辽阳市";
		city1[10] = "盘锦市";
		city1[11] = "铁岭市";
		city1[12] = "营口市";
		city1[13] = "葫芦岛市";
		city.put(sheng[i++], city1);
		city1 = new String[12];
		city1[0] = "呼和浩特市";
		city1[1] = "阿拉善盟";
		city1[2] = "巴彦淖尔盟";
		city1[3] = "包头市";
		city1[4] = "赤峰市";
		city1[5] = "兴安盟";
		city1[6] = "乌兰察布盟";
		city1[7] = "乌海市";
		city1[8] = "锡林郭勒盟";
		city1[9] = "呼伦贝尔盟";
		city1[10] = "伊克昭盟";
		city1[11] = "通辽市";
		city.put(sheng[i++], city1);
		city1 = new String[5];
		city1[0] = "银川市";
		city1[1] = "固原市";
		city1[2] = "石嘴山市";
		city1[3] = "吴忠市";
		city1[4] = "中卫市";
		city.put(sheng[i++], city1);
		city1 = new String[8];
		city1[0] = "西宁市";
		city1[1] = "海东地区";
		city1[2] = "海南藏族自治州";
		city1[3] = "海北藏族自治州";
		city1[4] = "黄南藏族自治州";
		city1[5] = "果洛藏族自治州";
		city1[6] = "玉树藏族自治州";
		city1[7] = "海西蒙古族藏族自治州";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "上海市";
		city.put(sheng[i++], city1);
		city1 = new String[17];
		city1[0] = "济南市";
		city1[1] = "东营市";
		city1[2] = "滨州市";
		city1[3] = "淄博市";
		city1[4] = "德州市";
		city1[5] = "济宁市";
		city1[6] = "聊城市";
		city1[7] = "临沂市";
		city1[8] = "莱芜市";
		city1[9] = "青岛市";
		city1[10] = "日照市";
		city1[11] = "威海市";
		city1[12] = "泰安市";
		city1[13] = "潍坊市";
		city1[14] = "烟台市";
		city1[15] = "菏泽市";
		city1[16] = "枣庄市";
		city.put(sheng[i++], city1);
		city1 = new String[11];
		city1[0] = "太原市";
		city1[1] = "大同市";
		city1[2] = "晋城市";
		city1[3] = "晋中市";
		city1[4] = "长治市";
		city1[5] = "临汾市";
		city1[6] = "吕梁地区";
		city1[7] = "忻州市";
		city1[8] = "朔州市";
		city1[9] = "阳泉市";
		city1[10] = "运城市";
		city.put(sheng[i++], city1);
		city1 = new String[10];
		city1[0] = "西安市";
		city1[1] = "宝鸡市";
		city1[2] = "安康市";
		city1[3] = "商洛市";
		city1[4] = "铜川市";
		city1[5] = "渭南市";
		city1[6] = "咸阳市";
		city1[7] = "延安市";
		city1[8] = "汉中市";
		city1[9] = "榆林市";
		city.put(sheng[i++], city1);
		city1 = new String[21];
		city1[0] = "成都市";
		city1[1] = "达川市";
		city1[2] = "甘孜藏族自治州";
		city1[3] = "自贡市";
		city1[4] = "阿坝藏族羌族自治州";
		city1[5] = "巴中市";
		city1[6] = "德阳市";
		city1[7] = "广安市";
		city1[8] = "广元市";
		city1[9] = "凉山彝族自治州";
		city1[10] = "乐山市";
		city1[11] = "攀枝花市";
		city1[12] = "南充市";
		city1[13] = "内江市";
		city1[14] = "泸州市";
		city1[15] = "绵阳市";
		city1[16] = "遂宁市";
		city1[17] = "雅安市";
		city1[18] = "宜宾市";
		city1[19] = "眉山市";
		city1[20] = "资阳市";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "天津市";
		city.put(sheng[i++], city1);
		city1 = new String[15];
		city1[0] = "乌鲁木齐市";
		city1[1] = "喀什地区";
		city1[2] = "克孜勒苏柯尔克孜自治";
		city1[3] = "克拉玛依市";
		city1[4] = "阿克苏地区";
		city1[5] = "阿勒泰地区";
		city1[6] = "巴音郭楞蒙古自治州";
		city1[7] = "哈密地区";
		city1[8] = "博尔塔拉蒙古自治州";
		city1[9] = "昌吉回族自治州";
		city1[10] = "塔城地区";
		city1[11] = "吐鲁番地区";
		city1[12] = "和田地区";
		city1[13] = "石河子市";
		city1[14] = "伊犁哈萨克自治州";
		city.put(sheng[i++], city1);
		city1 = new String[7];
		city1[0] = "拉萨市";
		city1[1] = "阿里地区";
		city1[2] = "昌都市";
		city1[3] = "林芝地区";
		city1[4] = "那曲地区";
		city1[5] = "山南地区";
		city1[6] = "日喀则地区";
		city.put(sheng[i++], city1);
		city1 = new String[16];
		city1[0] = "昆明市";
		city1[1] = "大理白族自治州";
		city1[2] = "昭通市";
		city1[3] = "保山市";
		city1[4] = "德宏傣族景颇族自治州";
		city1[5] = "迪庆藏族自治州";
		city1[6] = "楚雄彝族自治州";
		city1[7] = "临沧地区";
		city1[8] = "丽江市";
		city1[9] = "怒江傈僳族自治州";
		city1[10] = "曲靖市";
		city1[11] = "思茅地区";
		city1[12] = "西双版纳傣族自治州";
		city1[13] = "文山壮族苗族自治州";
		city1[14] = "红河哈尼族彝族自治州";
		city1[15] = "玉溪市";
		city.put(sheng[i++], city1);
		city1 = new String[11];
		city1[0] = "杭州市";
		city1[1] = "嘉兴市";
		city1[2] = "金华市";
		city1[3] = "衢州市";
		city1[4] = "丽水市";
		city1[5] = "宁波市";
		city1[6] = "绍兴市";
		city1[7] = "台州市";
		city1[8] = "温州市";
		city1[9] = "湖州市";
		city1[10] = "舟山市";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "香港";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "澳门";
		city.put(sheng[i++], city1);
		city1 = new String[1];
		city1[0] = "台湾";
		city.put(sheng[i++], city1);
		city1 = new String[7];
		city1[0] = "北美洲";
		city1[1] = "南美洲";
		city1[2] = "大洋洲";
		city1[3] = "欧洲";
		city1[4] = "亚洲";
		city1[5] = "非洲";
		city1[6] = "虚拟社团";
		city.put(sheng[i], city1);
		String ry="任意";
		for (int j=0;j<=sheng.length;j++) {
			if(j==0){
				sheng_search[j]=ry;
			}else{
				sheng_search[j]=sheng[j-1];
			}
		}
		String[] cityArr;
		String[] city1_search;
		int k=0;
		for (String key : sheng_search) {
			cityArr=city.get(key);
			if(cityArr!=null){
				city1_search=new String[cityArr.length+1];
				k=0;
				city1_search[k]=ry;
				for(String cityname:cityArr){
					city1_search[++k]=cityname;
				}
				
			}else{
				city1_search=new String[1];
				k=0;
				city1_search[k]=ry;
			}
			city_search.put(key, city1_search);
		}
		age[0]="任意";
		age[1]="18岁以下";
		age[2]="18-24岁";
		age[3]="25-30岁";
		age[4]="31-35岁";
		age[5]="36-40岁";
		age[6]="41-50岁";
		age[7]="51-59岁";
		age[8]="60岁及以上";
		
	}

}
